class Actor(object):
    def __init__(self):
        self.isBusy = False

    def occupied(self):
        self.isBusy = True
        print (type(self).__name__, 'is occupied with current movie')

    def available(self):
        self.isBusy = False
        print (type(self).__name__, 'is free for the movie')

    def get_status(self):
        return self.isBusy


class Agent(object):
    def __init__(self):
        self.principal = None

    def work(self):
        self.actor = Actor()
        if self.actor.get_status():
            self.actor.occupied()
        else:
            self.actor.available()


if __name__ == '__name__':
    r = Agent()
    r.work()



